import { configureStore } from '@reduxjs/toolkit'
// api请求
import apiSlice from './request/apiSlice'

// 可视化编辑器
import editorReducer from "./editor/editorSlice"
// demo测试
import counterReducer from './counterSlice'

export default configureStore({
  reducer: {
    counter: counterReducer,
    editor:editorReducer,
    [apiSlice.reducerPath]: apiSlice.reducer,
  },
  middleware: getDefaultMiddleware =>
    getDefaultMiddleware().concat(apiSlice.middleware)
})